from kyb_caps import *

print(dr.get_window_size())

def swipe_to_right(dr):
    x1 = dr.get_window_size()['width'] * 0.3
    y1 = dr.get_window_size()['height'] * 0.5
    x2 = dr.get_window_size()['width'] * 0.7
    dr.swipe(x1, y1, x2, y1)
def swipe_to_left(dr):
    x2 = dr.get_window_size()['width'] * 0.3
    y1 = dr.get_window_size()['height'] * 0.5
    x1 = dr.get_window_size()['width'] * 0.7
    dr.swipe(x1, y1, x2, y1)
def swipe_to_up(dr):
    y1 = dr.get_window_size()['height'] * 0.3
    x1 = dr.get_window_size()['width'] * 0.5
    y2 = dr.get_window_size()['height'] * 0.7
    dr.swipe(x1, y1, x1, y2)
def swipe_to_down(dr):
    y2 = dr.get_window_size()['height'] * 0.3
    x1 = dr.get_window_size()['width'] * 0.5
    y1 = dr.get_window_size()['height'] * 0.7
    dr.swipe(x1, y1, x1, y2)
